
var arg1 = "aaaa"; 
var arg1 = "bbbb";
// var arg1 = 123;
const ARG2 = true;
// ARG2=false;
var arg3:string = "asda"

var arg4:any = 123;
arg4="asdasd";

let arg5:number = 2347;
arg5 = 456;
// let arg5 

// var arg6:string = null;


var arr1:[number,string,boolean] = [1,"asda",true];
// arr1.push(1);
arr1 = [1,"asdasd",false];

// arr1.length = 0;
var arr2:number[] = [1,2,3]
// var arr2:number[] = [1,"asda",3]
 var arr3;
 arr3 = [1,2,"asda"];
 var arr4:any[] = [1,"asda",null];

 var arr5:Array<string> = ["a","b"];

 var arr6 = [1,"a"];
//  arr6[2] = true;
arr6[2]=1;
arr6[3]="adsa";

var arr7:(string|number|null)[] = [1,2,3,null,"asda",null,324];
var arr8:Array<string|number|null> = [1,"asdas",null,32];

//多维数组

var arr9:any[] = [ [],[],1,"asdasd",true ];
var arr10:[number[],any[],string[]] = [[1,2],[1,"asda",false],["111"] ];

var arr11:Array<Array<number>> = [ [1,23,1],[12,3213] ]
var arr12:Array<Array<any>> = [ [1,23,1,"asdas"],[true,12,3213] ]

//枚举
enum sex {
    M=1,
    F=0,
    U=3
};

var userSex1:sex = sex.F;

var str:string = "sdas";
var num:number = 123;

var arg20:any;
arg20 = "1230";

console.log((arg20 as string).length )